package club.zhangliyuanblog.service;

import club.zhangliyuanblog.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liyuan.zhang
 * @date 2021/2/18 22:59
 */
public interface UserService {
    /**
     * 查询所有
     * @return
     */
    List<User> findAll();

    void save(User user);

    void deleteUserById(Integer id);

    void update(User user);

    List<User> findUserByPage(Integer pageNow, Integer rows);

    Long findTotals();

    void batchInsertUser(List<User> users);
}
